<?php 
class RegModel extends CommonModel
{//类定义开始

    // 自动验证设置 
    protected $_validate     =     array( 
        array('username','require','用户名必须！',1), 
        array('email','email','邮箱格式错误！',2), 
        array('content','require','内容必须',1), 
        array('verify','require','验证码必须！'), 
        array('verify','CheckVerify','验证码错误',0,'callback'), 
        array('title','','标题已经存在',0,'unique','add'), 
        ); 
    // 自动填充设置 
    protected $_auto     =     array( 
        array('status','1','ADD'), 
        array('create_time','time','ADD','function'), 
        ); 

}//类定义结束
?>